//
//  MPBidBaseTableViewController.m
//  M800Project
//
//  Created by 姚宗超 on 14/11/10.
//  Copyright (c) 2014年 姚宗超. All rights reserved.
//

#import "MPBidBaseTableViewController.h"
#import "MPBidTableEmptyView.h"
#import "MPPlatformFilterTableController.h"
#import "MPNavigationViewController.h"

@interface MPBidBaseTableViewController ()

@end

@implementation MPBidBaseTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    self.emptyView = self.bidEmptyView;
    @weakify(self);
    self.bidEmptyView.tapHandler = ^()
    {
        @normalize(self);
        MPPlatformFilterTableController* vc = [[MPPlatformFilterTableController alloc] initWithStyle:UITableViewStyleGrouped];
        MPNavigationViewController* nav = [[MPNavigationViewController alloc] initWithRootViewController:vc];
        [self.navigationController presentViewController:nav animated:YES completion:nil];
    };
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

- (MPBidTableEmptyView *)bidEmptyView
{
    if (!_bidEmptyView) {
        _bidEmptyView = [[MPBidTableEmptyView alloc] init];
    }
    return _bidEmptyView;
}

@end
